﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ConsoleStudy;

namespace FlyKit
{
    public partial class Form_ActiveKit : Form
    {
        public Form_ActiveKit()
        {
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterScreen;
        }

        private void btnGenerateKey_Click(object sender, EventArgs e)
        {
            string code = tbCode.Text.Trim();
            if (code.Length == 0)
            {
                MessageBox.Show("请输入机器码");
                return;
            }
            string key = FlyPC.Md5(code);
            tbKey.Text = key;
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void Form_ActiveKit_Load(object sender, EventArgs e)
        {

        }
    }
}
